﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GC
{
    public class Sample:IDisposable
    {
        public decimal[] Array { get; set; }
        public Sample()
        {
            Array = new decimal[100];
           // Console.WriteLine("constructor");

        }
        ~Sample()
        {
            Console.WriteLine("destructor");
        }

        public void Finilize() 
        {
            Console.WriteLine("Finilize");
        }


        public void Dispose()
        {
            Console.WriteLine("Dispose");
        }

        internal void Dowork()
        {
            throw new NotImplementedException();
        }
    }
}
